package com.sz.admin.system.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class SysMessageUserTableDef extends TableDef {

    /**
     * <p>
 消息接收用户表
 </p>

 @author sz-admin
 @since 2025-04-21
     */
    public static final SysMessageUserTableDef SYS_MESSAGE_USER = new SysMessageUserTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn IS_READ = new QueryColumn(this, "is_read");

    public final QueryColumn DEL_FLAG = new QueryColumn(this, "del_flag");

    public final QueryColumn READ_TIME = new QueryColumn(this, "read_time");

    public final QueryColumn MESSAGE_ID = new QueryColumn(this, "message_id");

    public final QueryColumn RECEIVER_ID = new QueryColumn(this, "receiver_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, IS_READ, READ_TIME, MESSAGE_ID, RECEIVER_ID};

    public SysMessageUserTableDef() {
        super("", "sys_message_user");
    }

    private SysMessageUserTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public SysMessageUserTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new SysMessageUserTableDef("", "sys_message_user", alias));
    }

}
